package zmqc.iceyung.service;

import org.springframework.stereotype.Service;
import zmqc.iceyung.annotation.MyAop;
import zmqc.iceyung.bean.Student;
import java.util.ArrayList;
import java.util.List;


@Service
public class StudentService implements IStudentService{

    @MyAop("获得全部的学生信息")
    @Override
    public List<Student> getAllStudents() {
        Student stu1 = new Student(1,20,"小明","男");
        Student stu2 = new Student(1,18,"小红","女");
        List<Student> list = new ArrayList<>();
        list.add(stu1);
        list.add(stu2);
        return list;
    }
}
